<div class="container-fluid">
    <div class="row-fluid">
        <div class="span3">
            <?php echo $this->partial('_menu.phtml');?>
            <!--/.well -->
        </div>
        <div class="span9">
            <div class="wrap">
                <div id="main-content">
                    <?php
                    if($this->mail['p_mailing']) $action = $this->baseUrl() .'/admin/mail/update-mail';
                    else $action = $this->baseUrl() .'/admin/mail/save-mail';
                    ?>
                    <form class="form-horizontal" name="frm" action="<?php echo $action?>" method="post">
                    <h3><?php echo $this->title ?></h3>
                    <div class="control-group">
                    	<label class="control-label">Sujet du mailing :</label>
                    	<div class="controls">
                    		<input type="text" name="titre" value="<?php echo stripslashes($this->mail['titre']) ?>">
                    	</div>
                    </div>
                    <div class="control-group">
                    	<label class="control-label">Contenu :</label>
                    	<div class="controls" style="width:400px">
                    		<textarea id="contenu" name="contenu" cols="50" rows="10" name=""><?php echo stripslashes($this->mail['contenu']); ?></textarea>
                    		<script type="text/javascript">
                            CKEDITOR.replace( 'contenu',
                            {})
                            </script>
                    	</div>
                    </div>
                     <div class="control-group">
                        <label class="control-label" for="inputEmail">Email de test :</label>
                        <div class="controls">
                    		<input type="text" name="emailtest" value="<?php echo $this->mail['emailtest'] ?>">
                    	</div>
                    </div>
                    <div align="center" style="width:400px ">
                    	<a href="<?php echo $this->baseUrl() ?>/admin/index"><input class="btn btn-primary" type="button" name="cancel" value="annulé"></a> &nbsp;
                    	<input class="btn btn-primary" type="submit" name="submit" value="sauver" />
                    	<input type="hidden" name="p_mailing" value="<?php echo $this->mail['p_mailing'] ?>">
                    </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>